<div id="mod-list">
<h1>Listing Lecturers</h1>

<table cellpadding="5" cellspacing="0">
  <% for lecturer in @lecturers.sort_by(&:department) %>
  <tr valign="top" class="<%=cycle('list-line-odd', 'list-line-even')%>">
  
  <td width="600%">
  <span class="list-title"><%=h(lecturer.title)%>
  <span class="list-title"><%=h(lecturer.surname)%></span><br />
  <span class="list-dept3"><%=h(lecturer.department) %></span><br/>
     
    <span class="list-dept2"><%=h (truncate(lecturer.taught_modules, 200))%></span>
    
  </td>

    <td><%= link_to 'Show', :action => 'show', :id => lecturer %></td>
    <td><%= link_to 'Edit', :action => 'edit', :id => lecturer %></td>
    <td><%= link_to 'Destroy', { :action => 'destroy', :id => lecturer }, :confirm => 'Are you sure?', :post => true %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @lecturer_pages.current.previous } if @lecturer_pages.current.previous %>
<%= link_to 'Next page', { :page => @lecturer_pages.current.next } if @lecturer_pages.current.next %> 

<br />

<%= link_to 'New lecturer', :action => 'new' %>
